package br.usjt.controle;

public class ControleDaAplicacao {
	Command[] comandoVisao;
	Command[] comandosDoDominio;
	
	public void setCommand (int slot, Command visao, Command dominio){
		comandoVisao[slot]=visao;
		comandosDoDominio[slot]=dominio;
	}
	
	public void solicitaVisao(int slot){
		comandoVisao[slot].execute();
	}
	public void solicitaComandoDoDomio(int slot){
		comandosDoDominio[slot].execute();
	}
}
